/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.dingtalk.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import com.vivo.employee.entity.ViEmployee;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;
import javax.validation.constraints.NotNull;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 钉钉备忘信息Entity
 * @author jyangye
 * @version 2018-10-31
 */
public class DingWorkRecord extends DataEntity<DingWorkRecord> {
	
	private static final long serialVersionUID = 1L;
	private String empId;
	private User user;		// 用户ID
	private String dingUserId;		// 钉钉用户ID
	private String recordId;		// 备忘编号
	private String handlerId;		// 句柄ID
	private String title;		// 备忘标题
	private String url;		// 备忘查看Url
	private String formTitle1;		// 表单标题1
	private String formCont1;		// 表单内容1
	private String formTitle2;		// 表单标题2
	private String formCont2;		// 表单内容2
	private String status;		// 备忘状态

	private Office comp;
	
	public DingWorkRecord() {
		super();
	}

	public DingWorkRecord(String id){
		super(id);
	}

	public Office getComp() {
		return comp;
	}

	public void setComp(Office comp) {
		this.comp = comp;
	}


    @ExcelField(title="员工", align=2, sort=30)
    public String getEmpId() {
        return empId;
    }

    public void setEmpId(String empId) {
        this.empId = empId;
    }

	
	@NotNull(message="用户ID不能为空")
	@ExcelField(title="用户ID", align=2, sort=40)
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=64, message="钉钉用户ID长度必须介于 0 和 64 之间")
	@ExcelField(title="钉钉用户ID", align=2, sort=50)
	public String getDingUserId() {
		return dingUserId;
	}

	public void setDingUserId(String dingUserId) {
		this.dingUserId = dingUserId;
	}
	
	@Length(min=0, max=64, message="备忘编号长度必须介于 0 和 64 之间")
	@ExcelField(title="备忘编号", align=2, sort=60)
	public String getRecordId() {
		return recordId;
	}

	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}
	
	@Length(min=0, max=32, message="句柄ID长度必须介于 0 和 32 之间")
	@ExcelField(title="句柄ID", align=2, sort=70)
	public String getHandlerId() {
		return handlerId;
	}

	public void setHandlerId(String handlerId) {
		this.handlerId = handlerId;
	}
	
	@Length(min=1, max=64, message="备忘标题长度必须介于 1 和 64 之间")
	@ExcelField(title="备忘标题", align=2, sort=80)
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=1, max=128, message="备忘查看Url长度必须介于 1 和 128 之间")
	@ExcelField(title="备忘查看Url", align=2, sort=90)
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	@Length(min=1, max=32, message="表单标题1长度必须介于 1 和 32 之间")
	@ExcelField(title="表单标题1", align=2, sort=100)
	public String getFormTitle1() {
		return formTitle1;
	}

	public void setFormTitle1(String formTitle1) {
		this.formTitle1 = formTitle1;
	}
	
	@Length(min=1, max=64, message="表单内容1长度必须介于 1 和 64 之间")
	@ExcelField(title="表单内容1", align=2, sort=110)
	public String getFormCont1() {
		return formCont1;
	}

	public void setFormCont1(String formCont1) {
		this.formCont1 = formCont1;
	}
	
	@Length(min=0, max=32, message="表单标题2长度必须介于 0 和 32 之间")
	@ExcelField(title="表单标题2", align=2, sort=120)
	public String getFormTitle2() {
		return formTitle2;
	}

	public void setFormTitle2(String formTitle2) {
		this.formTitle2 = formTitle2;
	}
	
	@Length(min=0, max=64, message="表单内容2长度必须介于 0 和 64 之间")
	@ExcelField(title="表单内容2", align=2, sort=130)
	public String getFormCont2() {
		return formCont2;
	}

	public void setFormCont2(String formCont2) {
		this.formCont2 = formCont2;
	}
	
	@Length(min=0, max=8, message="备忘状态长度必须介于 0 和 8 之间")
	@ExcelField(title="备忘状态", align=2, sort=140)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}